package jmine.tec.persist.schema.jointable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

import jmine.tec.persist.annotation.Alias;
import jmine.tec.persist.annotation.Comment;
import jmine.tec.persist.annotation.Index;
import bancosys.tec.component.Documentation;

@Entity
@Alias("JOIN2")
@Table(name = "JOINED_2")
@Documentation("JOINED 2")
@PrimaryKeyJoinColumn(name = "COD_JOINED_2")
@Comment(table = "JOINED_1", column = "COD_JOINED_2", value = "CODIGO JOINED 2")
@Index(suffix = "JT_0", columns = "COD_JOINED_2")
public class JoinTableChild2Entity extends AbstractJoinTableEntity {

    private String campoProprio;

    /**
     * @return the campoProprio
     */
    @Index(name = "IX_JOIN2_0")
    @Column(name = "CAMPO_PROPRIO", length = 41)
    @Documentation("CAMPO PROPRIO JOINED 2")
    public String getCampoProprio() {
        return this.campoProprio;
    }

    /**
     * @param campoProprio the campoProprio to set
     */
    public void setCampoProprio(String campoProprio) {
        this.campoProprio = campoProprio;
    }
}
